# -*- coding: utf-8 -*-

"""
Time    :2021/6/15 下午9:21
Author  :chenyang
Email   :chenyang.it@outlook.com
FileName: extensions.py
Software: PyCharm
"""
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate

db = SQLAlchemy(use_native_unicode='utf8')
migrate = Migrate()

# 初始化拓展模块
def config_extensions(app):
    db.init_app(app)
    migrate.init_app(app, db)
